<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="sql" uri="http://java.sun.com/jsp/jstl/sql"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>查询角色类别</title>
	<link rel="stylesheet" type="text/css" href="${ctx}/themes/gray/easyui.css">
	<link rel="stylesheet" type="text/css" href="${ctx}/themes/icon.css">
	<script type="text/javascript" src="${ctx}/script/jquery.min.js"></script>
	<script type="text/javascript" src="${ctx}/script/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="${ctx}/script/lhgdialog/lhgdialog.min.js?s=facebook"></script>
	<script type="text/javascript" src="${ctx}/script/CheckText.js"></script>
	<script type="text/javascript">
		var dg = frameElement.lhgDG;
		dg.addBtn( 'ok', '确定', function(){ 
			dg.curWin.$("#lbmc").val($("#lbmc").val());
			dg.curWin.$("#sm").val($("#sm").val());
			dg.curWin.document.getElementById("form").submit();
			dg.cancel();
		});
		
		function submitForm() {
			var pLbmc= $("#lbmc").val();
			var pSm = $("#sm").val();
			var params = {
				"gg_czlb.lbmc" : pLbmc,
				"gg_czlb.sm" : pSm
			};
			
			
			/*
			var actionUrl = "gnsqMainFrameAction.action";
			$.ajax( {
				url : actionUrl,
				data : params,
				dataType : "json",
				cache : false,
				error : function(textStatus, errorThrown) {alert("系统ajax交互错误: " + textStatus);},
				success : function(data, textStatus) {
					if (data.ajaxResult == "success") {
						var dataRow = {
							id : data.gg_czlb.id,
							lbmc : pLbmc,
							sm : pSm
						};
						if(pId == "") {
							dg.curWin.$("#gridTable").addRowData(data.gg_czlb.id, dataRow, "first");
							new dg.curWin.$.dialog({id:'2',title:'信息提示页面',page:'${ctx}/success.jsp',rang:true,iconTitle:false}).ShowDialog();
							dg.cancel();
							//dg.reDialogSize(500,230);
							//alert("信息添加成功!");
						} else {
							dg.curWin.$("#gridTable").setRowData(data.gg_czlb.id, dataRow, {color:"#FF0000"});
							//dg.reDialogSize(500,230);
							//alert("信息更新成功!");
							new dg.curWin.$.dialog({id:'2',title:'信息提示页面',page:'${ctx}/success.jsp',rang:true,iconTitle:false}).ShowDialog();
							dg.cancel();
						}
						//dg.cancel();
						
					} else {
						dg.curWin.alert("修改操作失败!");
					}
				}
			});
			*/
		}
	</script>
</head>
<body>
<table id="tt" title="角色信息" iconCls="icon-title" align="center">
	<tbody>
	<tr>
		<td>角色名称:</td>
		<td><input id="lbmc" style="width:150px;" value=""></td>
	</tr>
	<tr>
		<td>角色说明:</td>
		<td><input id="sm" style="width:150px;" value=""></td>
	</tr>
	</tbody>
</table>
</body>
</html>